import React from "react";
import {HashRouter,Switch,Route} from "react-router-dom";
import Home from "../components/Home";
import Login from "../components/Login";

export default class Router extends React.Component{
    constructor(){
        super()
    }

    render(){
        return(
            <HashRouter>
                <Switch>
                    <Route path="/login" component={Login}/>
                    <Route path="/" component={Home}/>
                </Switch>
            </HashRouter>
        )
    }
}